<?php if ( is_owner() ): ?>
<div class="mobile-menu-content">
    <div class="mobile-menu-box">
        <div class="mobile-menu-lrtb">
            <div class="mobile-menu-scroll">
                <?php //echo menu('mobile'); ?>
                <ul>
                    <li><a href='/add'>Добавить</a></li>
                    <li><a href='/config'>Настройки</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script>
    document.getElementsByClassName("button-mobimenu-container")[0].setAttribute('onclick', "toggle_menu()");
    function toggle_menu(){
        document.getElementsByClassName("button-mobimenu-container")[0].classList.toggle("menu-open");
        document.getElementsByClassName("mobile-menu-content")[0].classList.toggle("openpanel");
    }
</script>
<?php endif; ?>